"""register URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.conf.urls import patterns
from django.contrib import admin
import billing

urlpatterns = [
    url(r'^index/(.+)/$','register.views.index',name="index"),
    url(r'^list_all_users/(?P<user_type>[0-9]+)/', 'register.views.list_all_users', name='list_all_users'),
    url(r'^check_user_pass/(?P<user_id>[0-9]+)/(?P<page_num>[0-9]+)/', 'register.views.check_user_pass', name='check_user_pass'),
    url(r'^check_user_nopass/(?P<user_id>[0-9]+)/(?P<page_num>[0-9]+)/', 'register.views.check_user_nopass', name='check_user_nopass'),
    url(r'^search/$', 'register.views.search',name='search'),
    url(r'^profile/$', 'register.views.get_personal_info',name='profile'),
    url(r'^regist/$', 'register.views.register',name='register'),
    url(r'^horizon/$', 'register.views.go_back_to_horizon',name='horizon'),
    url(r'^logout/$', 'register.views.logout',name='logout'),
    url(r'^validate/$', 'register.views.validate',name='validate'),
    url(r'^regist_check/$', 'register.views.regist_check',name='regist_check'),
]

urlpatterns += patterns(
    '',
    url(r'^billing/', include('billing.urls')),
)
